<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AlibabaCloud\Client\Filter;

class ClientFilter
{
    public static function regionId($regionId)
    {
        if(!is_string($regionId)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Region ID must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($regionId === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Region ID cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return strtolower($regionId);
    }
    public static function clientName($clientName)
    {
        if(!is_string($clientName)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Client Name must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($clientName === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Client Name cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return strtolower($clientName);
    }
    public static function retry($times)
    {
        if(!is_int($times)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Retry must be a int", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $times;
    }
    public static function connectTimeout($connectTimeout)
    {
        if($connectTimeout === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Connect Timeout cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $connectTimeout;
    }
    public static function timeout($timeout)
    {
        if($timeout === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Timeout cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $timeout;
    }
    public static function milliseconds($Milliseconds)
    {
        if(!is_int($Milliseconds)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Milliseconds must be int", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $Milliseconds;
    }
}

?>